package com.heima.apis.article.fallback;

import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.comment.dtos.CommentPageDto;
import com.heima.model.comment.dtos.StatusCommentDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;

/**
 * feign失败配置
 * @author itheima
 */
//@Component
public class IArticleClientFallback /*implements IArticleClient*/ {
    public ResponseResult saveArticle(ArticleDto dto)  {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }

    public ResponseResult showListComment(CommentPageDto dto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }

    public ResponseResult updateStatusComment(StatusCommentDto dto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");

    }
}